clean:
rm -f $(OBJS) gpsbabel gpsbabel.exe
+ [ -f gui/Makefile ] && $(MAKE) -C gui clean
configure: configure.in
autoconf
tar cvzf gpsbabel-osx.tgz usr/bin/gpsbabel
curl -u anonymous:anonymous --upload-file gpsbabel-osx.tgz ftp://upload.sf.net/incoming/
-
-mac-gui: gpsbabel
- # file gpsbabel | grep '2 architectures' || exit 1
- # file gui/objects/GPSBabelFE.app/Contents/MacOS/GPSBabelFE | grep '2 architectures' || exit 1
+gui: gpsbabel
cd gui ; qmake && make
cd gui ; lupdate app.pro
cd gui ; lrelease app.pro
+
+linux-gui: gui
+ cd gui; ./makelinuxdist.sh
+
+mac-gui: gui
+ # file gpsbabel | grep '2 architectures' || exit 1
+ # file gui/objects/GPSBabelFE.app/Contents/MacOS/GPSBabelFE | grep '2 architectures' || exit 1
mkdir -p gui/objects/GPSBabelFE.app/Contents/MacOS/translations
cp gui/*.qm gui/objects/gpsbabelFE.app/Contents/MacOS/translations
cp gpsbabel gui/objects/GPSBabelFE.app/Contents/MacOS
{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi
-ac_config_files="$ac_config_files Makefile gbversion.h gui/setup.iss gui/makelinuxdist.sh xmldoc/makedoc tools/mkcapabilities win32/gpsbabel.rc jeeps/Makefile shapelib/Makefile zlib/empty"
+ac_config_files="$ac_config_files Makefile gbversion.h gui/setup.iss xmldoc/makedoc tools/mkcapabilities win32/gpsbabel.rc jeeps/Makefile shapelib/Makefile zlib/empty"
+
+ac_config_files="$ac_config_files gui/makelinuxdist.sh"
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
"gbversion.h") CONFIG_FILES="$CONFIG_FILES gbversion.h" ;;
"gui/setup.iss") CONFIG_FILES="$CONFIG_FILES gui/setup.iss" ;;
- "gui/makelinuxdist.sh") CONFIG_FILES="$CONFIG_FILES gui/makelinuxdist.sh" ;;
"xmldoc/makedoc") CONFIG_FILES="$CONFIG_FILES xmldoc/makedoc" ;;
"tools/mkcapabilities") CONFIG_FILES="$CONFIG_FILES tools/mkcapabilities" ;;
"win32/gpsbabel.rc") CONFIG_FILES="$CONFIG_FILES win32/gpsbabel.rc" ;;
"jeeps/Makefile") CONFIG_FILES="$CONFIG_FILES jeeps/Makefile" ;;
"shapelib/Makefile") CONFIG_FILES="$CONFIG_FILES shapelib/Makefile" ;;
"zlib/empty") CONFIG_FILES="$CONFIG_FILES zlib/empty" ;;
+ "gui/makelinuxdist.sh") CONFIG_FILES="$CONFIG_FILES gui/makelinuxdist.sh" ;;
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
esac
+
+ case $ac_file$ac_mode in
+ "gui/makelinuxdist.sh":F) chmod +x gui/makelinuxdist.sh ;;
+
+ esac
done # for ac_tag
else
AC_MSG_RESULT(no)
fi
-AC_CONFIG_FILES([Makefile gbversion.h gui/setup.iss gui/makelinuxdist.sh xmldoc/makedoc tools/mkcapabilities win32/gpsbabel.rc jeeps/Makefile shapelib/Makefile zlib/empty])
+AC_CONFIG_FILES([Makefile gbversion.h gui/setup.iss xmldoc/makedoc tools/mkcapabilities win32/gpsbabel.rc jeeps/Makefile shapelib/Makefile zlib/empty])
+AC_CONFIG_FILES([gui/makelinuxdist.sh], [chmod +x gui/makelinuxdist.sh])
AC_OUTPUT
#!/bin/sh
set -e -v
-QTLIBDIR=/usr/lib
-QTSHDIR=/usr/share/qt4
+QT_INSTALL_PLUGINS=`qmake -query QT_INSTALL_PLUGINS`
+QT_INSTALL_TRANSLATIONS=`qmake -query QT_INSTALL_TRANSLATIONS`
DISTNAME=GPSBabel@PACKAGE_VERSION@@PACKAGE_RELEASE@
DISTDIR=$DISTNAME
mkdir $DISTDIR/translations
mkdir $DISTDIR/help
-cp `ldd objects/gpsbabelfe-bin | grep libQtCore |awk '{print $3}'` $DISTDIR
-cp `ldd objects/gpsbabelfe-bin | grep libQtGui |awk '{print $3}'` $DISTDIR
-cp `ldd objects/gpsbabelfe-bin | grep libQtWebKit |awk '{print $3}'` $DISTDIR
-cp `ldd objects/gpsbabelfe-bin | grep libQtXml |awk '{print $3}'` $DISTDIR
-cp `ldd objects/gpsbabelfe-bin | grep libQtNetwork |awk '{print $3}'` $DISTDIR
-cp `ldd objects/gpsbabelfe-bin | grep libQtDBus |awk '{print $3}'` $DISTDIR
-cp `ldd objects/gpsbabelfe-bin | grep libphonon |awk '{print $3}'` $DISTDIR
-cp `ldd objects/gpsbabelfe-bin | grep libaudio |awk '{print $3}'` $DISTDIR
+QT_LIBS=`ldd objects/gpsbabelfe-bin | grep libQt | awk '{print $3}'`
+for lib in $QT_LIBS
+do
+ cp $lib $DISTDIR
+done
+#cp `ldd objects/gpsbabelfe-bin | grep libphonon |awk '{print $3}'` $DISTDIR
+#cp `ldd objects/gpsbabelfe-bin | grep libaudio |awk '{print $3}'` $DISTDIR
-cp -r $QTSHDIR/plugins/imageformats $DISTDIR/plugins
-cp $QTSHDIR/translations/qt_*.qm $DISTDIR/translations/
+cp -r $QT_INSTALL_PLUGINS/imageformats $DISTDIR/plugins
+cp -r $QT_INSTALL_PLUGINS/codecs $DISTDIR/plugins
+cp $QT_INSTALL_TRANSLATIONS/qt_*.qm $DISTDIR/translations/
-# Generate the compiled translations
-TSFILES="gpsbabel_de.ts
-gpsbabel_es.ts
-gpsbabel_fr.ts
-gpsbabel_hu.ts
-gpsbabel_it.ts
-gpsbabelfe_de.ts
-gpsbabelfe_es.ts
-gpsbabelfe_fr.ts
-gpsbabelfe_hu.ts
-gpsbabelfe_it.ts"
-
-#
-lrelease $TSFILES
-QMFILES=`echo $TSFILES | sed -e 's/\.ts/.qm/g'`
-cp $TSFILES $DISTDIR/translations
-#
-# Only Spanish and German are moderately OK.
-cp gpsbabel_es.ts gpsbabelfe_es.ts gpsbabel_de.ts gpsbabelfe_de.ts $DISTDIR/translations
+# copy the compiled translations
+cp *.qm $DISTDIR/translations
# Now our gui
cp gmapbase.html $DISTDIR/
cp qt.conf $DISTDIR/
cp ../gpsbabel $DISTDIR/
#
-# Help needs to be donea
-cp ../../babelweb/htmldoc-development/* $DISTDIR/help/
+cp -r help/*.html $DISTDIR/help
-cp COPYING $DISTDIR/
+cp ../COPYING $DISTDIR/
#cp AUTHORS $DISTDIR/
-#cp README.contrib $DISTDIR/
-#cp README.gui $DISTDIR/
+cp ../README* $DISTDIR/
rm -f $DISTDIR.tar $DISTDIR.tar.bz2
tar cvf $DISTDIR.tar $DISTDIR
bzip2 $DISTDIR.tar
-# cleanup needed
-echo $QMFILES
-rm -f $QMFILES
# the application menu and system buttons. See description at
# http://doc.qt.nokia.com/4.6/mac-differences.html#translating-the-application-menu-and-native-dialogs
-QTDIR="/Developer/Applications/Qt/Qt Creator.app/Contents/Resources/translations"
+QTDIR=`qmake -query QT_INSTALL_TRANSLATIONS`
+
LANGDIR=objects/GPSBabelFE.app/Contents/MacOS/translations
-/* ANSI-C code produced by gperf version 3.0.4 */
+/* ANSI-C code produced by gperf version 3.0.3 */
/* Command-line: gperf --output-file=xcsv_tokens.gperf -L ANSI-C -D -t xcsv_tokens.in */
/* Computed positions: -k'2,4-5,12,$' */
#endif
#line 1 "xcsv_tokens.in"
-struct xt_mapping {char *name; int xt_token; };
+struct xt_mapping {const char *name; int xt_token; };
#define TOTAL_KEYWORDS 86
#define MIN_WORD_LENGTH 3
#ifdef __GNUC__
__inline
-#if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__
+#ifdef __GNUC_STDC_INLINE__
__attribute__ ((__gnu_inline__))
#endif
#endif